<template>
	<view class="project-card-view">

		<view class="tabBar-view">
			<view class="tabBar-item tabBar-active">我的项目</view>
			<view class="tabBar-item">交易记录</view>
		</view>
		<view class="tab-tabBar-view">
			<view class="tabBar-item tabBar-active">全部</view>
			<view class="tabBar-item">存续中</view>
			<view class="tabBar-item">已到期</view>
		</view>
		<view class="project-view">
			<view class="project-item">
				<MineProjectItem></MineProjectItem>
			</view>
			<view class="project-item">
				<MineProjectItem></MineProjectItem>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		}
	}
</script>

<style scoped lang="scss">
	.project-card-view {
		width: 100%;
		padding: 48px 40px;
		background: white;
		min-height: 610px;

		.tabBar-view {
			width: 100%;
			@extend .row-start;

			.tabBar-item {
				font-size: 18px;
				color: #2C1101;
				transition: all 0.3s;
				position: relative;
				@extend .column;

				&:before {
					content: "";
					width: 20px;
					height: 4px;
					background: #FFFFFF;
					position: absolute;
					bottom: -5px;
				}
			}

			.tabBar-item+.tabBar-item {
				margin-left: 32px;
			}

			.tabBar-active {
				font-weight: 600;
				font-size: 20px;
				color: #2C1101;

				&:before {
					background: #FF453B;
				}
			}
		}

		.tab-tabBar-view {
			width: 100%;
			@extend .row-start;
			margin-top: 27px;

			.tabBar-item {
				width: 81px;
				height: 41px;
				background: #F6F6F6;
				border-radius: 2px;
				@extend .column;
				font-size: 16px;
				color: #2C1101;
			}

			.tabBar-item+.tabBar-item {
				margin-left: 12px;
			}

			.tabBar-active {
				background: #FF453B;
				color: #FFFFFF;
			}
		}

		.project-view {
			width: 100%;
			@extend .row-between;
			align-items: flex-start;
			margin-top: 10px;


			.project-item {
				width: calc(100% / 2 - 10px);
				margin-top: 20px;
			}
		}
	}
</style>